home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Shareware World / Graphics / CFG 2.3 (Shareware) / CFG & Frontier / CFG.DocServer next >
Text File  |  1995-07-25  |  51KB  |  1,183 lines

  1.  
  2. Verb    CFG.alertDialog
  3. Syntax    CFG.alertDialog( message )
  4. Parameters    message is the message to display to the user.
  5. Action    Displays an alert box with the specified message.
  6. Returns    True
  7. Examples    CFG.alertDialog( "Warning!  Low memory situation." )
  8.     » true
  9. Notes    This verb displays an alert box with the "Caution" icon.  The message appears next to the icon and a single "OK" button appears below the message.  The alert waits until the user strikes the OK button.
  10. If CFG dialog display is disabled, this function will not display anything.  It simply returns True.
  11. One should only call this function if CFG is the front application (i.e. useful for shared menus).
  12. See Also    CFG.askDialog
  13. CFG.confirmDialog
  14. CFG.enableDialogs
  15.  
  16. Verb    CFG.askDialog
  17. Syntax    CFG.askDialog( prompt, answer )
  18. Parameters    prompt is the message to display in the dialog.
  19. answer is the default answer
  20. Action    Displays an dialog box with a prompt and waits for the user to enter the answer string.
  21. Returns    True if OK hit or false for Cancel.  If OK was hit, answer will contain the response.
  22. Examples    local( answer = "Alicia" )
  23. CFG.askDialog( "Who is your favorite person?", @answer )
  24.     » true
  25. answer stores the user's response ("Alicia" if the default answer was kept)
  26.  
  27. local( answer = "Rover" )
  28. CFG.askDialog( "What is the name of your dog?", @answer )
  29.     » false
  30. The user selected Cancel.  The value in answer is ignored as Cancel was selected.
  31. Notes    A dialog is displayed with a prompt, an editable text with an initial value of answer, and two buttons:  OK and Cancel.
  32. If CFG dialog display is disabled, this function will not display anything.  It simply returns True.
  33. One should only call this function if CFG is the front application (i.e. useful for shared menus).
  34. See Also    CFG.alertDialog
  35. CFG.confirmDialog
  36. CFG.enableDialogs
  37.  
  38. Verb    CFG.cancelBuild
  39. Syntax    CFG.cancelBuild()
  40. Parameters    None
  41. Action    Stops the fractal generation process for the target.
  42. Returns    True on success, false on error.
  43. Examples    CFG.cancelBuild()
  44.     » true
  45. Notes    The target window must be a fractal window.
  46. This routine returns true for fractal windows whether or not they are being generated.
  47. See Also    CFG.continueBuild
  48. CFG.generating
  49. CFG.redraw
  50.  
  51. Verb    CFG.cfgVersion
  52. Syntax    CFG.cfgVersion( [versionFlags] )
  53. Parameters    versionFlags is an optional address parameter that stores some additional program information.
  54. Action    Determines the version number of Color Fractal Generator.
  55. Returns    String4 with version and registration information.
  56. Examples    CFG.cfgVersion()
  57.     » 'R220'
  58. The R indicates that CFG is registered.  220 means version 2.20.
  59.  
  60. CFG.cfgVersion()
  61.     » 'U220'
  62. The U indicates that CFG is not registered.
  63. Notes    The first character returned indicates whether the program is registered ('R') or not registered ('U').
  64. The last three characters indicate the major version number, revision number, and maintenance release number, respectively.
  65. Currently, versionFlags returns 1 on the PowerMac version or 0 on 68K version.
  66. See Also    none
  67.  
  68. Verb    CFG.clear
  69. Syntax    CFG.clear()
  70. Parameters    none
  71. Action    Clears a fractal window's selection.
  72. Returns    True if anything was cleared, false otherwise.
  73. Examples    CFG.clear
  74.     » true
  75. Notes    The target window must be a fractal window.  At least some portion of the image must be selected.
  76. This command cannot be used when the target window is building a fractal.
  77. See Also    CFG.copy
  78. CFG.cut
  79. CFG.paste
  80.  
  81. Verb    CFG.clearErrorString
  82. Syntax    CFG.clearErrorString()
  83. Parameters    None
  84. Action    Sets the error string to a NULL string ("").
  85. Returns    True
  86. Examples    CFG.clearErrorString()
  87.     » True
  88. Notes    Use this function to clear old errors so that one may see if a set of instructions generates any new errors.
  89. See Also    CFG.errorString()
  90.  
  91. Verb    CFG.closeWindow
  92. Syntax    CFG.closeWindow( [action] )
  93. Parameters    action is an optional parameter.  If present, it should have a value of 1, 2, or 3.
  94. Action    Closes the target window.
  95. Returns    True if closed, false if still open.
  96. Examples    CFG.closeWindow( CFG.const.saveDataNo )
  97.     » true
  98. Notes    The New Parameters Window may not be closed.  Attempting to close it always returns false.
  99. After the window is closed, the target is cleared.  If no new target is assigned, the default target window becomes the front-most window.
  100. The optional parameter action specifies whether to automatically save the window if dirty, don't save, or prompt the user.  See "CFG.const.saveData..." constants.
  101. If CFG dialog display is disabled, this function will not display any prompts.  Windows will simply not be saved.
  102. See Also    CFG.enableDialogs
  103. CFG.newWindow
  104. CFG.openHelpWindow
  105. CFG.openWindow
  106.  
  107. Verb    CFG.confirmDialog
  108. Syntax    CFG.confirmDialog( question )
  109. Parameters    question is the question which the user either confirms or denies.
  110. Action    Displays a dialog querying the user to continue or cancel the action.
  111. Returns    True if OK hit, false for Cancel.
  112. Examples    CFG.confirmDialog( "Do you really want to erase your hard drive?" )
  113.     » false
  114. The user hit cancel, indicating a desired to keep the hard drive intact.
  115. Notes    This verb displays a dialog with the specified question.  The user may hit OK to continue the action or Cancel to abort.
  116. If CFG dialog display is disabled, this function will not display anything.  It simply returns True.
  117. One should only call this function if CFG is the front application (i.e. useful for shared menus).
  118. See Also    CFG.alertDialog
  119. CFG.askDialog
  120. CFG.enableDialogs
  121.  
  122. Verb    CFG.continueBuild
  123. Syntax    CFG.continueBuild()
  124. Parameters    None
  125. Action    Start building the target fractal from where we left off.
  126. Returns    True on successful start of continue, false on redraw needed.
  127. Examples    CFG.continueBuild()
  128.     » true
  129. Fractal creation is continuing from where we last left off.
  130.  
  131. CFG.continueBuild()
  132.     » false
  133. Either target was not a fractal or continuation not possible due to fractal window state change (such as different fractal parameters).
  134. Notes    The target window must be a fractal window.
  135. A continue may not be possible if fractal parameters were changed since the last generation process was stopped.  In that case, false is returned as the result and the fractal will not be generated.
  136. This command cannot be used when the target window is building a fractal.
  137. See Also    CFG.cancelBuild
  138. CFG.isBuilding
  139. CFG.redraw
  140.  
  141. Verb    CFG.copy
  142. Syntax    CFG.copy()
  143. Parameters    none
  144. Action    Copies current selection to the Clipboard.  This can either be an image from a fractal or text from the Help window.
  145. Returns    True if data copied to the Clipboard, false otherwise.
  146. Examples    CFG.copy
  147.     » True
  148. Notes    Fractal images cannot be copied for non-registered versions of Color Fractal Generator.
  149. This command cannot be used when the target window is building a fractal.
  150. Data is only placed in the Clipboard if CFG is the active application.
  151. See Also    CFG.clear
  152. CFG.cut
  153. CFG.paste
  154.  
  155. Verb    CFG.countFracWindows
  156. Syntax    CFG.countFracWindows()
  157. Parameters    None
  158. Action    Counts the number of fractal windows.
  159. Returns    An integer with the number of fractal windows.
  160. Examples    CFG.countFracWindows()
  161.     » 1
  162. There is one open window which is a fractal.
  163. Notes    The count will not include the New Parameters window or the Help window.
  164. See Also    CFG.countWindows
  165.  
  166. Verb    CFG.countWindows
  167. Syntax    CFG.countWindows()
  168. Parameters    None
  169. Action    Count the number of application windows that are currently open.
  170. Returns    An integer with the number of open windows.
  171. Examples    CFG.countWindows()
  172.     » 3
  173. Three windows are open:  the New Parameters Window and two others.
  174. Notes    The count includes the New Parameters Window and the Help Window (if open).
  175. See Also    CFG.countFracWindows
  176.  
  177. Verb    CFG.cut
  178. Syntax    CFG.cut()
  179. Parameters    none
  180. Action    Copies current selection to the Clipboard and then clears the selection.
  181. Returns    True if the image was cut or false if the operation failed.
  182. Examples    CFG.cut()
  183.     » True
  184. Notes    The target window must be a fractal window.
  185. For non-registered versions of CFG, CFG.cut() operates as CFG.clear().
  186. This command cannot be used when the target window is building a fractal.
  187. Data is only placed in the Clipboard if CFG is the active application.
  188. See Also    CFG.clear
  189. CFG.copy
  190. CFG.paste
  191.  
  192. Verb    CFG.cycleWindows
  193. Syntax    CFG.cycleWindows()
  194. Parameters    None
  195. Action    This function moves the top window behind all other windows.  The second window is now the top and it is made the target window.
  196. Returns    String with the name of the new top window.
  197. Examples    CFG.cycleWindows()
  198.     » "Mandlebrot 1"
  199. Notes    The new top window is now the target window.
  200. See Also    CFG.nthWindow
  201. CFG.selectWindow
  202. CFG.setTarget
  203.  
  204. Verb    CFG.deselect
  205. Syntax    CFG.deselect()
  206. Parameters    None
  207. Action    Remove any selection in the target.
  208. Returns    True if deselected, false on error.
  209. Examples    CFG.deselect()
  210.     » true
  211. Notes    This verb should not be applied to the New Parameters Window as it cannot have any selections.
  212. If applied to the correct window type, true is returned even if no selection exists.
  213. This command cannot be used when the target window is building a fractal.
  214. See Also    CFG.getSelection
  215. CFG.haveSelection
  216. CFG.selectAll
  217. CFG.selectRectAbs
  218. CFG.selectRectRel
  219.  
  220. Verb    CFG.displayFracDialog
  221. Syntax    CFG.displayFracDialog( [fractal] )
  222. Parameters    fractal is an optional parameter.  For non-fractal target windows, this string specifies the name or ID of the fractal data to edit.
  223. Action    Displays the dialog box for the target's fractal.
  224. Returns    True if OK chosen, false otherwise.
  225. Examples    CFG.displayFracDialog()
  226.     » true
  227.  
  228. CFG.displayFracDialog( CFG.const.ftypeDragon )
  229.     » true
  230.  
  231. CFG.displayFracDialog( CFG.const.fnameMandelbrot )
  232.     » true
  233. Notes    If the target is a fractal, the parameter "fractal" is ignored.  The data used in the dialog box is from the target's fractal type and data.
  234. For non-fractal targets, if "fractal" is specified, the global data for that fractal type is edited.  Otherwise, the data for the fractal type specified in the New Parameters Window is displayed.
  235. If CFG dialog display is disabled, this function will not display anything.  It simply returns True.
  236. This command cannot be used when the target window is building a fractal.
  237. See Also    CFG.enableDialogs
  238.  
  239. Verb    CFG.displayPrefsDialog
  240. Syntax    CFG.displayPrefsDialog()
  241. Parameters    None
  242. Action    Displays the preferences dialog box with the target's preferences.
  243. Returns    True if user selected OK, false for Cancel.
  244. Examples    CFG.displayPrefsDialog()
  245.     » true
  246. Notes    If the target is not a fractal window, the global preferences will be displayed in the dialog box.  These are used for creating new fractals.
  247. If CFG dialog display is disabled, this function will not display anything.  It simply returns True.
  248. This command cannot be used when the target window is building a fractal.
  249. See Also    CFG.enableDialogs
  250. CFG.getPrefs
  251. CFG.setPrefs
  252.  
  253. Verb    CFG.enableDialogs
  254. Syntax    CFG.enableDialogs( enable )
  255. Parameters    enable is a Boolean indicating whether or not to enable alerts.
  256. Action    Enables or disables alerts and dialog boxes.  This is useful if user interaction is not desired.
  257. Returns    Boolean indicating the previous state of CFG.enableDialogs (true for enabled, false for disabled).
  258. Examples    CFG.enableDialogs( false )
  259.     » true
  260. The alerts are now disabled as false was passed in.  Prior to this call, the alerts were enabled as indicated by the return value of true.
  261. Notes    Use this command very carefully!  CFG does not distinguish between commands directly from the user and commands from scripts.  If user interaction is disabled, it will stay that way until re-enabled by this command.
  262. During the time that alerts and dialogs are disabled, the only alerts or dialogs displayed are ones due to errors.
  263. If a dialog or alert is suppressed, the program will proceed as if the user chose the default dialog response.
  264. Exception:  if the default action may require user interaction, then the alternative action is chosen (example: the default for "Save Changes" is "OK", but since the user may need to enter the path, "Don't Save" would be chosen).
  265. If the alerts were disabled, make sure they are re-enabled before exiting the script.
  266. See Also    None
  267.  
  268. Verb    CFG.errorString
  269. Syntax    CFG.errorString()
  270. Parameters    None
  271. Action    Returns the last error which was detected.
  272. Returns    String with last error.
  273. Examples    CFG.errorString()
  274.     » ""
  275. No errors
  276.  
  277. CFG.errorString()
  278.     » "Out of memory"
  279. Last error was an out of memory error.
  280. Notes    This function returns a null string ("") if no errors have occurred since program start.
  281. See Also    CFG.clearErrorString
  282.  
  283. Verb    CFG.exp
  284. Syntax    CFG.exp( x )
  285. Parameters    x is a floating point numbers (double precision)
  286. Action    Calculates the exponential of the specified number.
  287. Returns    Returns the value e^x [i.e. exp(x)].
  288. Examples    CFG.exp( 0.0 )
  289.     » 1.0
  290. Notes    none
  291. See Also    CFG.log
  292. CFG.stepMultiple
  293.  
  294. Verb    CFG.generating
  295. Syntax    CFG.generating()
  296. Parameters    None
  297. Action    Determine whether the target fractal is being generated.
  298. Returns    True if fractal is being generated, false otherwise.
  299. Examples    CFG.generating()
  300.     » false
  301. Notes    The target window must be a fractal window.
  302. See Also    CFG.cancelBuild
  303. CFG.continueBuild
  304. CFG.redraw
  305.  
  306. Verb    CFG.getDepth
  307. Syntax    CFG.getDepth()
  308. Parameters    None
  309. Action    Get the target's color depth (bits per pixel).
  310. Returns    An integer with the number of bits per pixel.  Valid responses are -1, 4, 8, 16, and 32.
  311. Examples    CFG.getDepth()
  312.     » 8
  313.  
  314. CFG.getDepth()
  315.     » 32
  316. Notes    If the target is not a fractal, the default depth for a new fractal is returned.  This information is displayed in the New Parameters Window.
  317. A response of -1 (CFG.const.depthDeep) means to use the color depth of the deepest monitor attached to the system.  Thus, if a computer has two monitors, one set to 4 bits / pixel and the other to 16, a CFG.getDepth of -1 means to use the 16 bit depth.
  318. The depth is actually a field of the preferences.  However, since it is unwieldy to handle the preferences structure just to modify the fractal color depth, this function and CFG.setDepth were created.
  319. See Also    CFG.displayPrefsDislog
  320. CFG.getPreferences
  321. CFG.setDepth
  322. CFG.setPreferences
  323.  
  324. Verb    CFG.getFilePath
  325. Syntax    CFG.getFilePath()
  326. Parameters    None
  327. Action    Retrieves the path to the target's save file.
  328. Returns    A string with the path to the file or an empty string if no path exists or the full path cannot fit inside a string.
  329. Examples    CFG.getFilePath()
  330.     » "HD:myFractal"
  331. Notes    The target window must be a fractal window.
  332. The full path is limited to 255 characters.  If it is larger that 255 characters, an empty string is returned.
  333. See Also    CFG.open
  334. CFG.save
  335.  
  336. Verb    CFG.getFractalData
  337. Syntax    CFG.getFractalData()
  338. Parameters    None
  339. Action    Fetches the target's internal data.
  340. Returns    Returns a copy of the target's data stored in a record.
  341. Examples    CFG.getFractalData()
  342.     » {'accr':100, 'free':2, ... }
  343. Notes    The target window must be a fractal window.
  344. The meaning of this data depends on the type of fractal that it came from (which is determined from CFG.getFractalType).  The record structure is located in the "CFG Scripting Guide."
  345. See Also    CFG.setFractalData
  346.  
  347. Verb    CFG.getFractalSize
  348. Syntax    CFG.getFractalSize()
  349. Parameters    None
  350. Action    Obtains the size of the target's offscreen fractal data.
  351. Returns    A Point representing the width and height of the data.
  352. Examples    CFG.getFractalSize()
  353.     » { 640, 480 }
  354. Notes    If the target is not a fractal, the New Parameters Window's fractal size is returned.  This represents the fractal size for newly created fractals.
  355. See Also    CFG.setFSizeCustom
  356. CFG.setFSizeMenu
  357.  
  358. Verb    CFG.getFractalType
  359. Syntax    CFG.getFractalType( [fractalName] )
  360. Parameters    fractalName is an optional parameter which will store the fractal's name.
  361. Action    Get the fractal type of the target (and optionally the fractal name).
  362. Returns    An integer with the fractal ID number ("CFG.const.ftype...").
  363. Examples    local (theName)
  364. CFG.getFractalType( @theName )
  365.     » 3
  366. theName will store the string "Dragon" (the name of fractal type 3).
  367. Notes    The target can be any type of window.  For non-fractal windows, the fractal type represents the type displayed in the New Parameters window.
  368. See Also    CFG.setFractalType
  369. CFG.windowType
  370.  
  371. Verb    CFG.getLimitExtreme
  372. Syntax    CFG.getLimitExtreme()
  373. Parameters    None
  374. Action    Get current setting for limiting outlying values of randomly generated fractal variables.
  375. Returns    True if the limit is on, false if not.
  376. Examples    CFG.getLimitExtreme()
  377.     » false
  378. Notes    The target may be any type of window.
  379. The limit extreme value only applies to the current target.  Other windows may be set differently.
  380. If the target is the Help Window or New Parameters window, the setting will be the global setting which will be applied to new fractals.
  381. See Also    CFG.setLimitExtreme
  382.  
  383. Verb    CFG.getPICT
  384. Syntax    CFG.getPICT()
  385. Parameters    None
  386. Action    Get the PICT data for the current selection.
  387. Returns    'PICT' data for the current selection or false if no selection or an error occurred.
  388. Examples    CFG.getPICT()
  389.     » /PICT DATA/
  390.  
  391. CFG.getPICT()
  392.     » false
  393. Nothing was selected, so false was returned.
  394. Notes    The target window must be a fractal window.
  395. The target must currently have a selection.  This selection will be the PICT information which is returned.
  396. The unregistered version of CFG will simply return false without capturing the PICT data.
  397. See Also    CFG.copy
  398. CFG.cut
  399. CFG.getText
  400. CFG.putPICT
  401. CFG.savePicture
  402.  
  403. Verb    CFG.getPreferences
  404. Syntax    CFG.getPreferences()
  405. Parameters    None
  406. Action    Get a copy of the target's preferences.
  407. Returns    The target's preferences data stored in a record.
  408. Examples    CFG.getPreferences()
  409.     » {'flag':32768, 'prec':9, 'dmnu':1, ... }
  410. Notes    If the target is not a fractal window, the returned data is from the global preferences, which are applied to new fractals.
  411. The structure of the preferences data is explained in the "CFG Scripting Guide."
  412. See Also    CFG.setPreferences
  413.  
  414. Verb    CFG.getScrollPosition
  415. Syntax    CFG.getScrollPosition()
  416. Parameters    None
  417. Action    Gets the current and maximum scrolling parameters of the target.
  418. Returns    Rectangle with scroll information:
  419. r.left         current horizontal scroll setting
  420. r.right       maximum horizontal scroll setting
  421. r.top          current vertical scroll setting
  422. r.bottom    maximum vertical scroll setting
  423. Examples    CFG.getScrollPosition()
  424.     » { 2, 3, 10, 20 }
  425. The current scroll positions (h,v) are (2,3) while the maximum are (10,20).
  426. Notes    The target cannot be the New Parameters Window as it does not have a scroll region.
  427. A value of -1 indicates no scroll information is available for that parameter.  For example:  the help window would return a -1 for r.left and r.right since it has no horizontal scroll bar.
  428. The minimum scroll setting is 1.
  429. See Also    CFG.getWindowRect
  430. CFG.scrollWindow
  431.  
  432. Verb    CFG.getSelection
  433. Syntax    CFG.getSelection()
  434. Parameters    None
  435. Action    Retrieves the target's current selection.
  436. Returns    Rectangle with the selection.
  437. Examples    CFG.getSelection()
  438.     » { 0, 0, 640, 480 }
  439. Notes    This verb should not be applied to the New Parameters Window as it cannot have any selections.
  440. For fractal windows, the rectangle is the selection in local coordinates.  It is absolute with respect to the fractal's offscreen data.
  441. Only the left and right parameters of the rectangle are valid for the Help Window.  These specify the beginning and ending character positions of the selection.
  442. If nothing is selected, an empty rectangle is returned.
  443. See Also    CFG.deselect
  444. CFG.haveSelection
  445. CFG.selectAll
  446. CFG.selectRectAbs
  447. CFG.selectRectRel
  448.  
  449. Verb    CFG.getSpeed
  450. Syntax    CFG.getSpeed()
  451. Parameters    None
  452. Action    Obtain the fractal generation speed.
  453. Returns    An integer with the speed.  Constant definitions for the speed are located in "CFG.const.speed...".
  454. Examples    CFG.getSpeed()
  455.     » 1
  456. Notes    none
  457. See Also    CFG.setSpeed
  458.  
  459. Verb    CFG.getTarget
  460. Syntax    CFG.getTarget()
  461. Parameters    None
  462. Action    Returns the current target window.
  463. Returns    String with the name of the current target window.
  464. Examples    CFG.getTarget()
  465.     » "Mandelbrot 1"
  466. Notes    If no target window was ever assigned, the front-most window made the target and its name is returned.
  467. See Also    CFG.selectWindow
  468. CFG.setTarget
  469.  
  470. Verb    CFG.getText
  471. Syntax    CFG.getText()
  472. Parameters    None
  473. Action    Get the text of the current selection.
  474. Returns    Text data
  475. Examples    CFG.getText()
  476.     » "Registration information"
  477. The selected region of text was "Registration information"
  478. Notes    The target window must be the Help Window.
  479. The target must have a region of selected text.
  480. See Also    CFG.copy
  481. CFG.cut
  482. CFG.getPICT
  483. CFG.putPICT
  484.  
  485. Verb    CFG.getWindowPos
  486. Syntax    CFG.getWindowPos()
  487. Parameters    None
  488. Action    Get the target window's position.
  489. Returns    A rectangle representing the window's position.
  490. Examples    CFG.getWindowPos()
  491.     » { 30, 30, 120, 200 }
  492. Notes    The rectangle is in global coordinates.  It corresponds to the content region of the window (it includes the scroll bar region - if present).
  493. The target window can be any type of window.
  494. See Also    CFG.getWindowRect
  495. CFG.grayRgnRect
  496. CFG.moveWindow
  497.  
  498. Verb    CFG.getWindowRect
  499. Syntax    CFG.getWindowRect()
  500. Parameters    None
  501. Action    Returns the target's view rectangle relative to the entire data region.
  502. Returns    Rectangle
  503. Examples    CFG.getWindowRect()
  504.     » { 187, 190, 292, 450 }
  505. Notes    The target window can be any type.
  506. For non-fractal windows, this simply returns the window boundaries in global coordinates.
  507. For fractals, the position of the view rectangle (window's content region seen on screen) relative to the entire data region (fractal size) is returned.
  508.     Thus, the content region (in global coordinates) minus the amount that the window has been scrolled is returned.
  509. See Also    CFG.getWindowPos
  510. CFG.grayRgnRect
  511. CFG.moveWindow
  512.  
  513. Verb    CFG.grayRgnRect
  514. Syntax    CFG.grayRgnRect()
  515. Parameters    None
  516. Action    Returns the total desktop area minus menu bar region and a 4 pixel frame surrounding the desktop.
  517. Returns    Rectangle
  518. Examples    CFG.grayRgnRect()
  519.     » { 24, 4, 456, 636 }
  520. Notes    This function is useful when moving and resizing windows.  The title region of a window must remain in this rectangle.
  521. See Also    CFG.getWindowPos
  522. CFG.getWindowRect
  523. CFG.mainScreenSize
  524.  
  525. Verb    CFG.haveSelection
  526. Syntax    CFG.haveSelection()
  527. Parameters    None
  528. Action    Determines whether the target has a selected area.
  529. Returns    True if the target has a selection or false if it does not.
  530. Examples    CFG.haveSelection()
  531.     » true
  532. Notes    The target window cannot be the New Parameters Window.  This window will never have a selection.
  533. See Also    CFG.deselect
  534. CFG.getSelection
  535. CFG.selectAll
  536. CFG.selectRectAbs
  537. CFG.selectRectRel
  538.  
  539. Verb    CFG.invertColor
  540. Syntax    CFG.invertColor()
  541. Parameters    None
  542. Action    Inverts the selected region's colors.
  543. Returns    True if OK, false on error.
  544. Examples    CFG.invertColor()
  545.     » true
  546. Notes    The target must be a fractal window.
  547. An area of the fractal must be selected.  Only those pixels in the selection are inverted.
  548. This command cannot be used when the target window is building a fractal.
  549. See Also    CFG.getPICT
  550. CFG.putPICT
  551.  
  552. Verb    CFG.listFractalTypes
  553. Syntax    CFG.listFractalTypes()
  554. Parameters    None
  555. Action    Generate a list of fractals which are supported by CFG.
  556. Returns    A list of fractal names.
  557. Examples    CFG.listFractalTypes()
  558.     » {"Mandelbrot", "Julia", "Dragon", "Random Walk"}
  559. Notes    none
  560. See Also    CFG.getFractalType
  561. CFG.setFractalType
  562.  
  563. Verb    CFG.listHelpItems
  564. Syntax    CFG.listHelpItems()
  565. Parameters    None
  566. Action    Generate a list of topics available from the Help window.
  567. Returns    A list of topics available from the Help window pop-up menu.
  568. Examples    CFG.listHelpItems()
  569.     » {"Help System", "Creating Fractals", "Applying Color",  ... }
  570. Notes    none
  571. See Also    CFG.openHelpWindow
  572. CFG.setHelpItem
  573.  
  574. Verb    CFG.listPalettes
  575. Syntax    CFG.listPalettes()
  576. Parameters    None
  577. Action    Returns the Palette menu's list of palettes for the target.
  578. Returns    A list of palette names.
  579. Examples    CFG.listPalettes()
  580.     » {"Grayscale Palette", "Rainbow Palette", "System Palette", "myCustomPalette"}
  581. Notes    If the target window is not a fractal, the returned list contains the global palettes available to a new fractal.
  582. See Also    CFG.loadPalette
  583. CFG.savePalette
  584. CFG.setPalFromList
  585.  
  586. Verb    CFG.loadPalette
  587. Syntax    CFG.loadPalette( path )
  588. Parameters    path is the full path name of the desired palette file.
  589. Action    Loads a specified palette file.
  590. Returns    True on success, false on failure.
  591. Examples    CFG.loadPalette( "HD:myPalette" )
  592.     » true
  593. Notes    The loaded file will become the target's custom palette file.  This change will be reflected in the Palette menu when the target becomes the top-most window.
  594. Although the palette is loaded, the colors of the fractal will not be altered for 16 and 32 bit environments until it is regenerated.
  595. If the target is not a fractal, the loaded palette becomes the default palette for new fractals.  This information is shown in the New Parameters Window.
  596. This command only loads CFG created palettes.  It cannot handle 'clut' and 'pltt' resources.
  597. This command cannot be used when the target window is building a fractal.
  598. See Also    CFG.listPalettes
  599. CFG.savePalette
  600. CFG.setPalFromList
  601.  
  602. Verb    CFG.log
  603. Syntax    CFG.log( x )
  604. Parameters    x is a floating point numbers (double precision).  This number must be greater than 0.
  605. Action    Calculates the natural logarithm of the specified number.
  606. Returns    Returns the value ln(x)
  607. Examples    CFG.log( 1.0 )
  608.     » 0.0
  609. Notes    This function returns a 0 if the parameter is not positive.
  610. See Also    CFG.exp
  611. CFG.stepMultiple
  612.  
  613. Verb    CFG.madeChanges
  614. Syntax    CFG.madeChanges()
  615. Parameters    None
  616. Action    Determines whether any changes have been made to the target since the last time it was saved.
  617. Returns    True if changes were made or false if the target is not "dirty".
  618. Examples    CFG.madeChanges()
  619.     » true
  620. Notes    The target window must be a fractal window.
  621. If the target was never saved (such as creating a fractal with New), true will always be returned.
  622. See Also    CFG.saveAs
  623.  
  624. Verb    CFG.mainScreenSize
  625. Syntax    CFG.mainScreenSize()
  626. Parameters    None
  627. Action    Returns the size of the main screen in pixels.
  628. Returns    Point
  629. Examples    CFG.mainScreenSize()
  630.     » { 640, 480 }
  631. Notes    This function is useful when adjusting fractal sizes.
  632. See Also    CFG.getWindowPos
  633. CFG.getWindowRect
  634. CFG.grayRgnRect
  635.  
  636. Verb    CFG.moveWindow
  637. Syntax    CFG.moveWindow( pos )
  638. Parameters    pos is a rectangle specifying the new window coordinates and size.
  639. Action    Moves and resizes a target window.
  640. Returns    True is successful, false on error.
  641. Examples    local( r )
  642. r = rectangle.set( 50, 50, 250, 400 )
  643. CFG.moveWindow( r )
  644.     » true
  645. The window moved to top-left of 50,50 and it is 350 pixels across and 200 pixels high.
  646. Notes    The target can be any window type.  Fractal windows are moved and resize, while other windows types are simply moved (bottom and right rectangle fields are ignored).
  647. If the desired location forces the window off the screen, the operation will fail and the window remains at its present location.
  648. See Also    CFG.getWindowPos
  649. CFG.getWindowRect
  650.  
  651. Verb    CFG.newWindow
  652. Syntax    CFG.newWindow( name )
  653. Parameters    name is an optional parameter which specifies the new window's name.
  654. Action    Creates a new fractal window using the current parameters in the New Parameters Window.
  655. Returns    A string containing the new window's name or an empty string if an error occurred during window creation.
  656. Examples    CFG.newWindow( "myFractal" )
  657.     » "myFractal"
  658.  
  659. CFG.newWindow( "ourFractal" )
  660.     » ""
  661. The empty string indicates an error occurred during the window's creation.
  662.  
  663. CFG.newWindow()
  664.     » "Mandelbrot 1"
  665. A new window was created.  CFG assigned the name "Mandelbrot 1" since no name was provided by the user.
  666. Notes    The name is an optional parameter.  If no name is specified or an empty string is specified, CFG generates its own name for the window.
  667. The fractal information for the new window is taken from the parameters specified in the New Parameters Window.
  668. The new window is NOT made the target window.  It is, however, made the front-most window.
  669. See Also    CFG.closeWindow
  670. CFG.openWindow
  671.  
  672. Verb    CFG.nthWindow
  673. Syntax    CFG.nthWindow( windowN )
  674. Parameters    windowN is the window number to select
  675. Action    Selects a nth window from the top.
  676. Returns    String with the window title of selected window, or an empty string if no such window exists.
  677. Examples    CFG.nthWindow( 4 )
  678.     » "Mandelbrot 1"
  679. Notes    The specified window is made the front-most window and also the target.
  680. The top window is considered window 1, the window below that is 2, etc.
  681. If the specified window does not exist (windowN is greater than the total number of windows), an empty string is returned.
  682. See Also    CFG.cycleWindows
  683. CFG.selectParamsWindow
  684. CFG.selectWindow
  685.  
  686. Verb    CFG.openHelpWindow
  687. Syntax    CFG.openHelpWindow()
  688. Parameters    None
  689. Action    Opens the help window and brings it to the front.
  690. Returns    String with the name of the Help Window.
  691. Examples    CFG.openHelpWindow()
  692.     » "Help Window"
  693. Notes    The help window is made the target window.
  694. If the help window is already open, it is simply selected and made the target.
  695. See Also    CFG.closeWindow
  696. CFG.listHelpItems
  697. CFG.openWindow
  698. CFG.selectHelpItem
  699.  
  700. Verb    CFG.openWindow
  701. Syntax    CFG.openWindow( path )
  702. Parameters    path specifies the full path to the file to open.
  703. Action    Opens a fractal window using information from the file specified in 'path'.
  704. Returns    True if the file was properly opened and false if an error occurred.
  705. Examples    CFG.openWindow( "HD:myFractal" )
  706.     » true
  707.  
  708. CFG.openWindow( "HD:?!~" )
  709.     » false
  710. An error occurred while attempting to open the specified fractal.  One possible explanation is that the path specification is invalid.
  711. Notes    The newly opened window is NOT made the target window.  It is, however, made the front-most window.
  712. See Also    CFG.closeWindow
  713. CFG.newWindow
  714. CFG.openHelpWindow
  715.  
  716. Verb    CFG.paste
  717. Syntax    CFG.paste()
  718. Parameters    none
  719. Action    Pastes a PICT image from the Clipboard into the fractal window.
  720. Returns    True if the paste was successful or false if no image could be pasted.
  721. Examples    CFG.paste()
  722.     » True
  723. Notes    The target window must be a fractal window.
  724. The image on the Clipboard must be in PICT format.
  725. If the window has a selection, the image is pasted into the selection (scaled to fit the selected rectangle).  Otherwise it is scaled to fit the window.
  726. This command cannot be used when the target window is building a fractal.
  727. Data can only be copied from the Clipboard if CFG is the active application.
  728. See Also    CFG.clear
  729. CFG.copy
  730. CFG.cut
  731. CFG.getPICT
  732. CFG.putPICT
  733.  
  734. Verb    CFG.performanceTest
  735. Syntax    CFG.performanceTest( r1, r2 )
  736. Parameters    r1 and r2 are two rectangles which are used in the test.
  737. Action    This verb performs a rectangle subtraction (r1 - r2) and returns the result.
  738. Returns    A rectangle which is the result of the rectangle subtraction (r1 - r2).
  739. Examples    r1 = rectangle.set( 50, 50, 60, 60 )
  740. r2 = rectangle.set( 20, 20, 25, 25 )
  741. CFG.performanceTest( r1, r2 )
  742.     » { 30, 30, 35, 35 }
  743. Notes    This verb supports the performance benchmark test written in Frontier.
  744. See Also    None
  745.  
  746. Verb    CFG.putPICT
  747. Syntax    CFG.putPICT( pict )
  748. Parameters    pict is a graphic which will be placed in the target
  749. Action    "Pastes" the picture into the target's selected rectangle
  750. Returns    True if the operation was successful, false on failure
  751. Examples    local( pict )
  752. clipboard.get( 'PICT', @pict ) « stuff "pict" with some image data
  753. CFG.putPICT( pict )
  754.     » true
  755. Notes    The graphic passed to this verb must be of type 'PICT'.
  756. The target window must be a fractal window.
  757. The picture will be "pasted" inside the selection and stretched to fit the selection.  If there is no selection, the picture is scaled to fit the window.
  758. This command cannot be used when the target window is building a fractal.
  759. See Also    CFG.getPICT
  760. CFG.getText
  761. CFG.paste
  762. CFG.savePicture
  763.  
  764. Verb    CFG.quit
  765. Syntax    CFG.quit( [action] )
  766. Parameters    action is an optional parameter.  If present, it should have a value of 1, 2, or 3.
  767. Action    Sends a quit command to CFG.
  768. Returns    True
  769. Examples    CFG.quit()
  770.     » true
  771. Notes    The optional parameter action specifies whether to automatically save the window if dirty, don't save, or prompt the user.  See "CFG.const.saveData..." constants.
  772. If CFG dialog display is disabled, this function will not display any prompts.  Windows will simply not be saved.
  773. See Also    None
  774.  
  775. Verb    CFG.redraw
  776. Syntax    CFG.redraw()
  777. Parameters    None
  778. Action    Reset the fractal creation process and start building the target fractal.
  779. Returns    True if the process started, false on error.
  780. Examples    CFG.redraw()
  781.     » true
  782. Notes    The target window must be a fractal window.
  783. This command cannot be used when the target window is building a fractal.
  784. See Also    CFG.cancelBuild
  785. CFG.continueBuild
  786. CFG.generating
  787.  
  788. Verb    CFG.revertFractal
  789. Syntax    CFG.revertFractal()
  790. Parameters    None
  791. Action    Resets the target its state when it was last saved.
  792. Returns    True if the target was reverted or false if an error occurs.
  793. Examples    CFG.revertFractal()
  794.     » true
  795. Notes    The target window must be a fractal window.
  796. If the target was never saved (and no file is associated with the target), the target cannot be reverted.
  797. This command cannot be used when the target window is building a fractal.
  798. See Also    CFG.saveAs
  799.  
  800. Verb    CFG.saveAs
  801. Syntax    CFG.saveAs( [path] )
  802. Parameters    path is an optional parameter which specifies a name and location of the saved file.
  803. Action    Saves the contents of the target window to disk.
  804. Returns    True if the file was saved or false if it was not saved.
  805. Examples    CFG.saveAs( "HD:myFractal" )
  806.     » true
  807. The contents of the target were saved to the file specified by the path "HD:myFractal".
  808.  
  809. CFG.saveAs()
  810.     » true
  811. The fractal information was saved to the target's previous save file.
  812. Notes    The target window must be a fractal window.
  813. If the path is specified, CFG.saveAs functions as the "Save As" command.  If no path is specified, this verb functions as the "Save" command.
  814. If no path is specified and no file is associated with the fractal, false is returned (and an error is flagged).
  815. See Also    CFG.revertFractal
  816.  
  817. Verb    CFG.savePalette
  818. Syntax    CFG.savePalette( path )
  819. Parameters    path is the file name and location to save the palette.
  820. Action    Saves the target's current palette to a file.
  821. Returns    True on success, false on failure.
  822. Examples    CFG.savePaletteFile( "HD:myPalette" )
  823.     » true
  824. Notes    The current palette may not be the target's custom palette.
  825. See Also    CFG.listPalettes
  826. CFG.loadPalette
  827. CFG.setPalFromList
  828.  
  829. Verb    CFG.savePicture
  830. Syntax    CFG.savePICT( path, picType )
  831. Parameters    path is the file name and location to save the fractal's image.
  832. picType is the graphic file format.  Currently, only 'PICT' is supported.
  833. Action    Saves the fractal to a graphics file.  Optionally, one may save only the selected region.
  834. Returns    True on success, false on failure.
  835. Examples    CFG.savePICT( "HD:myPICT", CFG.const.imagePICT )
  836.     » true
  837. Notes    The target window must be a fractal.
  838. A selected area is saved only if part of the image is selected and the "save selection" preferences flag is set.
  839. Future versions of CFG may support more graphics formats.
  840. This function only works on registered versions of CFG.
  841. See Also    CFG.getPICT
  842. CFG.putPICT
  843.  
  844. Verb    CFG.scrollWindow
  845. Syntax    CFG.scrollWindow( dir, count )
  846. Parameters    dir is the direction to scroll the window.
  847. count is the amount to move it.
  848. Action    Scrolls the target in the direction and amount specified.
  849. Returns    True on a successful scroll, false on scroll failure.
  850. Examples    CFG.scrollWindow( pageDown, 1 )
  851.     » true
  852. Moves the target window down by 1 page.
  853. Notes    The New Parameters Window cannot be scrolled at all and the Help Window may only be scrolled vertically.  If attempts are made to scroll in illegal directions, false will be returned.
  854. The numeric definitions for direction are located in the "CFG Scripting Guide".  You may also use the directions defined by Frontier.
  855. If false is returned, it means that the scrolling has reached its limit in the specified direction.
  856. See Also    None
  857.  
  858. Verb    CFG.selectAll
  859. Syntax    CFG.selectAll()
  860. Parameters    None
  861. Action    Selects the entire contents of the target.
  862. Returns    True if successful, false if selection could not be made.
  863. Examples    CFG.selectAll()
  864.     » true
  865. Notes    The target window cannot be the New Parameters Window as nothing can be selected in this type of window.
  866. If the target is a fractal window, the entire fractal picture is selected.  For Help Windows, all text for the current help section is selected.
  867. This command cannot be used when the target window is building a fractal.
  868. See Also    CFG.deselect
  869. CFG.getSelection
  870. CFG.haveSelection
  871. CFG.selectRectAbs
  872. CFG.selectRectRel
  873.  
  874. Verb    CFG.selectHelpItem
  875. Syntax    CFG.selectHelpItem( itemName )
  876. Parameters    itemName is the name of the item for which to obtain help information.
  877. Action    Display help information for a given item.
  878. Returns    True if item displayed, false on error.
  879. Examples    CFG.selectHelpItem( "Registration" )
  880.     » true
  881. Notes    The target must be the help window.
  882. A list of valid help items is returned by CFG.listHelpItems().
  883. See Also    CFG.listHelpItems
  884. CFG.openHelpWindow
  885.  
  886. Verb    CFG.selectParamsWindow
  887. Syntax    CFG.selectParamsWindow()
  888. Parameters    None
  889. Action    Bring the New Parameters Window to the front.
  890. Returns    String with the name of the New Parameters Window or an empty string on an error.
  891. Examples    CFG.selectParamsWindow()
  892.     » "New Parameters"
  893. Notes    The New Parameters Window is made the target.
  894. As the New Parameters Window cannot be disposed, it should always be present.  It may not always be named "New Parameters", however.
  895. See Also    CFG.nthWindow
  896. CFG.selectWindow
  897.  
  898. Verb    CFG.selectRecAbs
  899. Syntax    CFG.selectRectAbs( rect )
  900. Parameters    rect is the coordinates of the selection
  901. Action    Select a region of the target using coordinates that references the top,left of the target's data.
  902. Returns    True if no error, false on error.
  903. Examples    r = rectange.set( 0, 0, 640, 480 )
  904. CFG.selectRecAbs( r )
  905.     » true
  906. Notes    This verb should not be applied to the New Parameters Window as it cannot have any selections.
  907. For fractal windows, the selected rectangle will appear at the specified location with respect to the fractal's offscreen data.
  908. Thus if the rectangle was { 10, 10, 30, 30 }, the selection would appear 10 pixels down and to the right of the offscreen's top left corner.  The location on screen depends on the current scroll coordinates.
  909. For Help Windows, only the left and right fields of the rectangle are valid.  These specify the character positions to start and end the selection respectively.
  910. Relative and absolute have no meaning for the Help Window.  Therefore, this function is the same as CFG.selectRectRel for the Help Window.
  911. This command cannot be used when the target window is building a fractal.
  912. See Also    CFG.deselect
  913. CFG.getSelection
  914. CFG.haveSelection
  915. CFG.selectAll
  916. CFG.selectRectRel
  917.  
  918. Verb    CFG.selectRectRel
  919. Syntax    CFG.selectRectRel( rect )
  920. Parameters    rect is the coordinates of the selection
  921. Action    Select a region of the target relative to the current view region.
  922. Returns    True if no error, false on error.
  923. Examples    r = rectangle.set( 0, 0, 256, 256 )
  924. CFG.selectRectRel( r )
  925.     » true
  926. Notes    This verb should not be applied to the New Parameters Window as it cannot have any selections.
  927. For fractal windows, the selected rectangle will appear relative to the top-left corner of the viewing region.
  928. Thus if the rectangle was { 10, 10, 30, 30 }, the selection would appear 10 pixels down and to the right of the window's top left corner, no matter where scroll coordinates are located.
  929. For Help Windows, only the left and right fields of the rectangle are valid.
  930. These specify the character positions to start and end the selection respectively.  Relative and absolute have no meaning for the Help Window.  Therefore, this function is the same as CFG.selectRectAbs for the Help Window.
  931. This command cannot be used when the target window is building a fractal.
  932. See Also    CFG.deselect
  933. CFG.getSelection
  934. CFG.haveSelection
  935. CFG.selectAll
  936. CFG.selectRectAbs
  937.  
  938. Verb    CFG.selectWindow
  939. Syntax    CFG.selectWindow( name )
  940. Parameters    name is the title of the window to select.
  941. Action    Makes the specified window the front-most window.
  942. Returns    True if the named window was found or false if no such window exists.
  943. Examples    CFG.selectWindow( "Mandelbrot 1" )
  944.     » true
  945. Notes    The selected window becomes the target window.
  946. See Also    CFG.getTarget
  947. CFG.nthWindow
  948. CFG.selectParamsWindow
  949. CFG.setTarget
  950.  
  951. Verb    CFG.setDepth
  952. Syntax    CFG.setDepth( depth )
  953. Parameters    depth is the number of bits per pixel.  Default values are defined in "CFG.const.depth...".  A setting of CFG.const.depthDeep means to use the depth of the deepest screen.
  954. Action    Sets the target's color depth.
  955. Returns    True if depth altered, false on error.
  956. Examples    CFG.setDepth( CFG.const.depth16Bit )
  957.     » true
  958. Notes    Always reset the target window after false is returned.  It is possible that a memory allocation error will occur when attempting to change the depth of the offscreen buffer.  In this case, the window may be disposed.
  959. If the target is not a fractal window, the new depth will become the default depth for new fractals.  This information will be reflected in the New Parameters Window.
  960. The depth is actually a field of the preferences.  However, since it is unwieldy to handle the preferences structure just to modify the fractal color depth, this function and CFG.getDepth were created.
  961. This command cannot be used when the target window is building a fractal.
  962. See Also    CFG.getDepth
  963. CFG.getPreferences
  964. CFG.setPreferences
  965.  
  966. Verb    CFG.setFractalData
  967. Syntax    CFG.setFractalData( fracData )
  968. Parameters    fracData is a record containing the data fields that the user wants to modify.
  969. Action    Inserts the fractal data into the target.
  970. Returns    True if the data was applied, false if the data was invalid data or if not a fractal window.
  971. Examples    fractalData = { CFG.const.fdataAccuracy:50, CFG.const.fdataScaleX:0.01 }
  972. CFG.setFractalData( fractalData )
  973.     » true
  974. Notes    The target window must be a fractal window.
  975. The meaning of this data depends on the type of fractal that it came from (which is determined from CFG.getFractalType).  The record structure is located in the "CFG Scripting Guide."
  976. Fields that the user does not wish to alter can be omitted.
  977. Data verification will be performed.
  978. This command cannot be used when the target window is building a fractal.
  979. See Also    CFG.getBinary
  980.  
  981. Verb    CFG.setFractalType
  982. Syntax    CFG.setFractalType( fractal )
  983. Parameters    fractal is the name or ID of a fractal type.  Constants are defined in "CFG.const.ftype..." and "CFG.const.fname...".
  984. Action    Sets the fractal type to use for new fractals.
  985. Returns    True if desired fractal could be set, false otherwise.
  986. Examples    CFG.setFractalType( CFG.const.ftypeDragon )
  987.     » true
  988.  
  989. CFG.setFractalType( "Moth" )
  990.     » false
  991. "Moth" is an unknown fractal type.
  992. Notes    The target cannot be a fractal window, as once a fractal is assigned to a window, it cannot be changed.
  993. See Also    CFG.getFractalType
  994. CFG.listFractalTypes
  995.  
  996. Verb    CFG.setFSizeCustom
  997. Syntax    CFG.setFSizeCustom( customSize )
  998. Parameters    customSize is a Point whose horizontal and vertical fields specify the width and height of the fractal respectively.
  999. Action    Sets the fractal size according to the user specified horizontal and vertical coordinates.
  1000. Returns    True if size was valid or false on error.
  1001. Examples    p = point( 640 + 480 * 0x10000 ) « a little trick to use h,v integers to create a point
  1002. CFG.setFSizeCustom( p )
  1003.     » true
  1004.  
  1005. p = point( "-10, 32001" )
  1006. CFG.setFSizeCustom( p )
  1007.     » false
  1008. Both the fields of customSize are invalid.
  1009. Notes    If the target window is not a fractal, the global size values are modified, which specify the size of newly created fractals.  This information will be reflected in the New Parameters Window.
  1010. This command cannot be used when the target window is building a fractal.
  1011. See Also    CFG.setFSizeMenu
  1012.  
  1013. Verb    CFG.setFSizeMenu
  1014. Syntax    CFG.setFSizeMenu( sizeItem )
  1015. Parameters    sizeItem is a constant that defines which standard size to use.  See "CFG.const.fsize..." for a list of default sizes.
  1016. Action    Set the fractal's size to standard sizes displayed in the Size Menu.
  1017. Returns    True if the fractal size was changed, false on error.
  1018. Examples    CFG.setFSizeMenu( CFG.const.fsize13Inch )
  1019.     » true
  1020. Sets the fractal size to that of a 13" monitor (640 x 480 pixels).
  1021.  
  1022. CFG.setFSizeMenu( 9 )
  1023.     » false
  1024. Size item number is invalid.
  1025. Notes    If the target window is not a fractal, the global size values are modified, which specify the size of newly created fractals.  This information will be reflected in the New Parameters Window.
  1026. Use the CFG.setFSizeCustom command for non-standard image sizes.
  1027. This command cannot be used when the target window is building a fractal.
  1028. See Also    CFG.setFSizeCustom
  1029.  
  1030. Verb    CFG.setLimitExtreme
  1031. Syntax    CFG.setLimitExtreme( limit )
  1032. Parameters    limit is a Boolean set to true to turn the limiting on and false to turn it off.
  1033. Action    Alter the target's limit extreme value.
  1034. Returns    True
  1035. Examples    CFG.setLimitExtreme( true )
  1036.     » true
  1037. Notes    The target may be any type of window.
  1038. If the target is the Help Window or New Parameters window, the setting is applied to the global setting, which affects newly created fractals.
  1039. See Also    CFG.getLimitExtreme
  1040.  
  1041. Verb    CFG.setPalFromList
  1042. Syntax    CFG.setPalFromList( paletteTitle )
  1043. Parameters    paletteTitle is the name of the palette that appears in the target's Palette menu.
  1044. Action    Sets the palette entitled paletteTitle as the target's current palette.
  1045. Returns    True if palette loaded, false on error.
  1046. Examples    CFG.setPalFromList( CFG.const.palNameRainbow )
  1047.     » true
  1048.  
  1049. CFG.setPalFromList( "An ugly palette" )
  1050.     » false
  1051. The palette entitled "An ugly palette" does not exist in the target's Palette menu.
  1052. Notes    If the target is a fractal window, the palette is made the current palette.  Colors are altered immediately for 4 and 8 bit systems.  Fractals with more colors require a redraw.
  1053. If the target is not a fractal window, the new palette will be the default palette for new fractals.  This information is displayed in the New Parameters Window.
  1054. The palette menu has a set of standard palette defined and one custom palette per fractal.  If you wish to assign the custom palette, be sure to obtain its name by using CFG.getPaletteList().
  1055. Note that the custom palette displayed in the Palette menu is for the top fractal window only.  If the target is not the top-most window, the custom palette in the Palette menu may not be the target's custom palette.
  1056. This command cannot be used when the target window is building a fractal.
  1057. See Also    CFG.getPaletteFile
  1058. CFG.listPalettes
  1059. CFG.savePaletteFile
  1060.  
  1061. Verb    CFG.setPreferences
  1062. Syntax    CFG.setPreferences( prefs )
  1063. Parameters    prefs is a record with the preferences data.
  1064. Action    Copies the data into the target's preferences.
  1065. Returns    True if successful or false on error.
  1066. Examples    prefs = {CFG.const.prefsFlags:57872, CFG.const.prefsPrecision:9}
  1067. CFG.setPreferences( prefs )
  1068.     » true
  1069. Notes    If the target is not a fractal window, the data is copied to the global preferences, which are applied to new fractals.
  1070. The structure of the preferences data is explained in the "CFG Scripting Guide."
  1071. Data validation is performed before the preferences are inserted.
  1072. Only those fields that will be altered need to be present in the record.
  1073. This command cannot be used when the target window is building a fractal.
  1074. See Also    CFG.getPreferences
  1075.  
  1076. Verb    CFG.setSpeed
  1077. Syntax    CFG.setSpeed( speed )
  1078. Parameters    speed specifies the fractal generation speed.  Speed constants are defined in "CFG.const.speed...".
  1079. Action    Change the fractal generation speed.
  1080. Returns    True on success, false on error.
  1081. Examples    CFG.setSpeed( CFG.const.speedBackMedium )
  1082.     » true
  1083. Notes    Setting to foreground mode will prevent CFG from processing further Apple Events while a fractal is generating.
  1084. See Also    CFG.getSpeed
  1085.  
  1086. Verb    CFG.setTarget
  1087. Syntax    CFG.setTarget( name )
  1088. Parameters    name is the title of the window which will be made the target.  If name is an empty string, the front-most window is made target.
  1089. Action    Makes the specified window the target window.
  1090. Returns    A string with the title of the target window, or an empty string if the desired target was not found.
  1091. Examples    CFG.setTarget( "Mandelbrot 1" )
  1092.     » "Mandelbrot 1"
  1093.  
  1094. CFG.setTarget( "" )
  1095.     » "Dragon 2"
  1096. The front-most window is made the target since the name parameter was an empty string.  "Dragon 2" is the name of the new target window.
  1097. Notes    If an empty string is passed as the desired target's title, the front-most window is set as the target and its name is returned.
  1098. If the specified target was not found, an empty string is returned.  In this case, the target of subsequent operations will default to the front-most window.
  1099. See Also    CFG.getTarget
  1100. CFG.selectWindow
  1101.  
  1102. Verb    CFG.stepMultiple
  1103. Syntax    CFG.stepMultiple( scale, steps )
  1104. Parameters    'scale' and 'steps' are floating point numbers (double precision).  (Scale > 1) and (Steps >= 2).
  1105. Action    Calculates a multiplier used for moving between two different scales in a specific number of steps.
  1106. Returns    Returns the value exp( log( scale ) / (steps - 1.0) ).
  1107. Examples    CFG.stepMultiple( 8.0, 3.0 )
  1108.     » 2.0
  1109. Notes    In the above example, to alter the scale by a factor of 8 ('scale') in 3 steps requires multiplying the scale by 2.0 (return value) three times ('steps').
  1110. See Also    CFG.exp
  1111. CFG.log
  1112.  
  1113. Verb    CFG.windowType
  1114. Syntax    CFG.windowType()
  1115. Parameters    None
  1116. Action    Get the window type of the target.
  1117. Returns    An integer containing the window type.  Window type constants are defined in CFG.const.wtype...".
  1118. Examples    CFG.windowType()
  1119.     » 1
  1120. Notes    The target may be any type of window.
  1121. The Custom Fractal Window and Fractal Movie Window are not supported in the current version of CFG, but may be in future versions.
  1122. See Also    CFG.getFractalType
  1123.  
  1124. Verb    CFG.zoomInOut
  1125. Syntax    CFG.zoomInOut( zIn )
  1126. Parameters    zIn is a Boolean specifying whether to zoom in or out.  See "CFG.const.zoom...".
  1127. Action    Zooms the target in or out by a factor of two.
  1128. Returns    True if zoom was OK, false on error (such as target not a fractal).
  1129. Examples    CFG.zoomInOut( CFG.const.zoomIn )
  1130.     » true
  1131. Zooming in on the fractal (by a scale factor of 2).
  1132.  
  1133. CFG.zoomInOut( CFG.const.zoomOut )
  1134.     » true
  1135. Zooming out on the fractal.
  1136. Notes    The target must be a fractal, but it cannot be a Random Walk fractal.
  1137. This command cannot be used when the target window is building a fractal.
  1138. See Also    CFG.zoomSelection
  1139. CFG.zoomValue
  1140.  
  1141. Verb    CFG.zoomSelection
  1142. Syntax    CFG.zoomSelection()
  1143. Parameters    None
  1144. Action    Zooms in on the fractal, fitting the selected area to the fractal size.
  1145. Returns    True on success, false on failure.
  1146. Examples    CFG.zoomSelection()
  1147.     » true
  1148. Notes    The target window must be a fractal, but it cannot be a Random Walk fractal.
  1149. The fractal must have a selection.  The selection becomes the fractal's bounding rectangle.  Thus, the top of the selection will become the new top of the fractal, the selection's left side will become the fractal's left edge, etc.
  1150. This command cannot be used when the target window is building a fractal.
  1151. See Also    CFG.zoomInOut
  1152. CFG.zoomValue
  1153.  
  1154. Verb    CFG.zoomValue
  1155. Syntax    CFG.zoomValue( zoomX, zoomY )
  1156. Parameters    zoomX and zoomY are floating point numbers (double precision) which specify the amount to zoom the fractal (horizontally and vertically)
  1157. Action    Zoom in on the fractal by the specified amount.
  1158. Returns    True if successful, false on error.
  1159. Examples    CFG.zoom( 3.0 )
  1160.     » true
  1161. Zooms in on fractal by a factor of 3x.
  1162.  
  1163. CFG.zoom( 0.5 )
  1164.     » true
  1165. Zooms out by a factor of 2 (1 / 0.5).
  1166. Notes    The target window must be a fractal, but it cannot be a Random Walk fractal.
  1167. One zooms in by specifying a value greater than one, while one zooms out with values between zero and one.
  1168. That is, one may zoom out by a factor X by specifying the zoom amount to be (1 / X).
  1169. Zoom values less or equal to 0 are invalid.
  1170. This command cannot be used when the target window is building a fractal.
  1171. See Also    CFG.zoomInOut
  1172. CFG.zoomSelection
  1173.  
  1174. Verb    CFG.zoomWindow
  1175. Syntax    CFG.zoomWindow()
  1176. Parameters    None
  1177. Action    Enlarges / Reduces the size of the target window.
  1178. Returns    True if successful, false if the zoom failed.
  1179. Examples    CFG.zoomWindow
  1180.     » true
  1181. Notes    The target window cannot be the New Parameters Window.  This window has a fixed size.
  1182. See Also    CFG.moveWindow
  1183.